package com.woniu.user.service;

import com.woniu.entity.Result;
import com.woniu.order.pojo.Order;
import com.woniu.user.DTO.CommentDTO;
import com.woniu.user.DTO.UserLoginDTO;
import com.woniu.user.DTO.UserRegisterDTO;
import com.woniu.user.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 用户端用户表 服务类
 * </p>
 *
 * @author LiFangyu
 * @since 2023-02-15
 */
public interface IUserService extends IService<User> {
    User login(UserLoginDTO userLoginDTO);

    Result register(UserRegisterDTO userRegisterDTO);

    Result getVerificationCode(String phone);

    Result addPortrait(MultipartFile multipartFile,String phone);

    Result personalInformation(String phone);

    Result getAttention(String phone);

    Result getFans(String phone);

    Result getCollect(String phone);
    User getByUsername(String username);

    List<Order> getOrderInfo(String username);

    Result getUserCircle(String phone);

    Result getUserLikeCar(String phone);

    Result comment(CommentDTO commentDTO);

    Result getUserCar(String phone);

    User getUserByPhone(String phone);
}
